package com.lc.executor;

import java.lang.reflect.Method;
import java.sql.SQLException;

public interface Executor {

    Object executeQuery(Class<?> returnType, Method method, Object[] args) throws ClassNotFoundException,
            SQLException, InstantiationException, IllegalAccessException;

    int executeInsert(Method method) throws SQLException;

    int executeUpdate(Method method, Object[] args) throws SQLException;

    int executeDelete(Method method);
}
